<template>
  <div class="boss fcc">
    <head-page
      :title="`${this.$route.query.TopTitle}`"
      style="border-bottom: 2px solid #dad9df"
      id="backstyle"
    ></head-page>
    <div class="area-center bold-size">
      <div class="title-center m-t-0">{{ this.$route.query.texttitle }}</div>
      <div class="xiao flex aic m-t-0">
        <div class="left" style="font-size: 0.18rem">
          <div class="title-center">{{ this.$route.query.index }}.</div>
        </div>
        <div class="title-center" style="line-height: 0.18rem">
          {{ this.$route.query.contect }}
        </div>
      </div>
      <!-- 内容区域 -->
      <div class="context richText m-t-0" v-html="context"></div>
    </div>
  </div>
</template>

<script>
import { productId } from "@/api/index";
export default {
  data() {
    return {
      context: "",
    };
  },
  mounted() {
    productId({
      productId: this.$route.query.id,
    }).then((res) => {
      if (res.data.code == 200) {
        // this.list=res.data.data.producttypeId
        this.context = this.dataHTML(res.data.data.productText);
      }
    });
  },
};
</script>

<style scoped>
.boss {
  width: 100%;

  flex-direction: column;
}
/* 版心区域 */
.center {
  width: 98%;
  height: 100%;
}
.xiao {
  width: 100%;
  display: flex;
}
/* 左边区域 */
.xiao .left {
  width: 5%;
  height: 100%;
}
/* 内容区域 */
.context {
  width: 100%;
  word-wrap: break-word;
}
</style>